package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.DestinationCommend;
import cn.wolfcode.luowowo.article.query.DestinationCommendQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationCommendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DestinationCommend record);

    DestinationCommend selectByPrimaryKey(Long id);

    List<DestinationCommend> selectAll();

    int updateByPrimaryKey(DestinationCommend record);

    List<DestinationCommend> query(DestinationCommendQuery qo);

    void updateStateValue(@Param("id") Long id, @Param("state") int state);

    List<DestinationCommend> selectByMonth(int month);

    List<DestinationCommend> selectDestTop5();

    int selectMaxSequence(Long id);
}